import os
import time
import pyautogui
import pyperclip
from robot.api import logger

class Project(object):

    ROBOT_LIBRARY_VERSION = 1.0

    def __init__(self):
        pass

    def get_project_dir(self):
        return os.path.dirname(os.path.dirname(__file__))
    
    def get_test_data(self):
        project_dir = os.path.dirname(os.path.dirname(__file__))
        test_data = os.path.join(project_dir, "TestData")
        return test_data
    
    def get_chrome_height(self):
        return 140
    
    def copy_path_to_edit_and_submit(self, file_path):
        if os.path.exists(file_path):
            pyperclip.copy(file_path)
            pyautogui.hotkey('ctrl','v')
            pyautogui.press('enter', presses=2)
            
if __name__ == '__main__':
    pj= project()
    print(pj.get_project_dir())
    print(pj.get_test_data())